# 继承 --- 实习代码复用
# 在Python中多继承，Java单继承

class Animal():
    def __init__(self, color):
        self.color = color

    def eat(self):
        print("吃")


class Dog(Animal):
    pass




class Cat(Animal):
    pass


dog = Dog("黄色")
print(dog.color)
dog.eat()

cat = Cat("黑色")
print(cat.color)
cat.eat()
